package com.springboot.demo.entity;

import com.springboot.demo.entity.validate.MapCoordinateGroup;
import com.springboot.demo.entity.validate.user.IdGroup;
import com.springboot.demo.utils.Constant;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Date;
import java.util.List;

/**
 * @author wubc683
 * @desc 地图数据
 * @date 2021-07-26 15:22
 */
@Data
public class MapData {
    @ApiModelProperty(value = "地图id",required = true)
    @NotNull(message = "地图id不能为null",groups = IdGroup.class)
    private Long id;
    @ApiModelProperty(value = "地图背景颜色，0：典雅白，1：星空蓝，2，油气橙，3：能源绿",required = true)
    @NotNull(message = "地图颜色不能为null")
    private Integer color;
    @ApiModelProperty(value = "聚合分散类型，0：点聚合，1点分散，2按城市聚合",required = true)
    @NotNull(message = "聚合类型不能为null")
    private Integer disperseType;
    @ApiModelProperty(value = "地图起始经度",required = true)
    @NotNull(message = "地图起始经度不能为null",groups = MapCoordinateGroup.class)
    private Double longitude;
    @ApiModelProperty(value = "地图起始纬度",required = true)
    @NotNull(message = "地图起始纬度不能为null",groups = MapCoordinateGroup.class)
    private Double latitude;
    @ApiModelProperty(value = "地图缩放级别",required = true)
    @NotNull(message = "地图缩放级别不能为null",groups = MapCoordinateGroup.class)
    private Integer scale;
    @ApiModelProperty("组件位置,即当组件被加入仪表盘时，组件在页面中的位置信息")
    private ComponentPosition position;
}
